
    <div>
        
        <form method="post" action="<?php echo  $this->Html->url('/home/searchlocation');  ?>">
        
	<input type="hidden" name="data[category]" value="<?php if(isset($categoryID)) echo $categoryID; ?>" />
        <div id="h_container_search_new">
        <div id="title"><p><?php echo __('Location'); ?></p></div></br>
        <?php
            $list_location = $this->requestAction('Common/CreateArrsearch');?>
        <?php
           foreach ($list_location as $key=>$value) {
               echo '<div  style="margin: -10px 0px 10px 10px ;" class="location_checkall">';
               echo '<label class="label_parent">';
               echo $this->Form->input('Location.'.$key.'', array(
                    'label' => false,
                    'type' => 'checkbox',
                    'class' => 'location_check_fix_a',
                    'div' => false
                ));   
               echo $value['name'];
               echo '</label>';
                    echo '<div style="margin: 0px 0px 10px 10px;" class="location_arr">';
                    if(is_array($value['list_category'])){
                        foreach ($value['list_category'] as $k=>$val) {
                             echo '<label>';
                             echo $this->Form->input('Search.'.$k.'', array(
                                  'label' => false,
                                  'type' => 'checkbox',
                                  'class' => 'h_width_location',
                                  'div' => false
                             ));
                             echo $val;
                             echo '</label>';
                        }

                    }
                    echo '</div>';
               echo '<div class="clearBoth"></div>';  
               echo '</div>';
               echo '<div class="clearBoth" style="float:none !important;"></div>';  
           } 
          ?>
       <div class="clearBoth"></div> 
        <button style="float: right;margin-right: 7px;" type="submit" class="btn btn-danger h_button_search" ><?php echo __('Search');?></button>
        <div class="clearBoth"></div> 

    </div>
</div>
        
</form>
<style type="text/css">
    #h_container_search_new{
        border: 1px solid #B3B3B3;
        border-radius: 5px;
        margin: 10px 0px 0px 0px;
    }
    #h_container_search_new #title{
        background-color: #CEC6C6;
        height: 30px;
        text-align: center;
    }
    #h_container_search_new #title p{
        line-height: 25px;
        font-size: 16px;
        font-weight: bold;
        color: #fff;
    }
    #h_container_search_new .label_parent input{
        margin: 0px 4px 2px 0px;
    }
</style>